<%--
  Created by IntelliJ IDEA.
  User: yulianghao
  Date: 2017/12/12
  Time: 15:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<script type="text/javascript" src="/js/plugins/artDialog/jquery.artDialog.js?skin=blue"></script>
<script type="text/javascript">
    <s:if test="hasActionMessages()">
    var msg = '<s:property value="actionMessages[0]"/>';
    $.dialog({
        title:"操作提示",
        content:msg,
        icon:"face-smile",
        ok:true
    });
    </s:if>
    <s:if test="hasActionErrors()">
    var error = '<s:property value="actionErrors[0]"/>';
    $.dialog({
        title:"操作提示",
        content:error,
        icon:"face-sad",
        ok:true
    });
    </s:if>
</script>
